<style tyle="text/css">
    .modal-lg {
    width: 90%;
    }
    

</style>
<div class="modal-header">
    <h4 class="modal-title">票信息</h4>
</div>
<div class="modal-body">
    <div class="container-fluid form-horizontal ">
        <div class="col-xs-12">
                <div class="panel-body">
                    <div class="container-fluid">
                
                    <div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
                    <div class="panel panel-default">
                    <div class="panel-body">
                    <div class="col-xs-12 col-md-12" >
                        <div class="row ">                   
                            <div class="col-sm-3">
							<ui-select ng-model="searchform.type" theme="bootstrap" ng-keyup="myKeyup($event)" >
								<ui-select-match placeholder="请选择一个票种">
									{{$select.selected.name}}
								</ui-select-match>
								<ui-select-choices repeat="item as item in typearr | filter: $select.search">
									<span ng-bind-html="item.name | highlight: $select.search"></span>
								</ui-select-choices>
							</ui-select>
						</div>

                        
                        
                            <div class="col-sm-3">
                                <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                                    <input class="form-control" />
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-calendar"></span>
                                    </span>
                                </div>
                                
                            </div>                 
                            <div class="col-sm-3">
                                <div class="input-group" datetimepicker ng-model="vm1.date" options="vm1.options">
                                    <input class="form-control"/>
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-calendar"></span>
                                    </span>
                                </div>
                            </div>  
                            <div class="col-sm-3">
                                <input type="text" class="form-control" placeholder="订单编号" ng-model="searchform.order_code" ng-keyup="myKeyup($event)">
                            </div> 
                        </div> 
                    </div>
                    <div class="col-md-12" style="margin-top:10px">
                        <div class="row ">
                            <div class="col-sm-3">
							<ui-select ng-model="searchform.update" theme="bootstrap" ng-keyup="myKeyup($event)">
								<ui-select-match placeholder="请选择要更新的内容">
									{{$select.selected.name}}
								</ui-select-match>
								<ui-select-choices repeat="item.value as item in updatearr | filter: $select.search">
									<span ng-bind-html="item.name | highlight: $select.search"></span>
								</ui-select-choices>
							</ui-select>
						</div>
                            <div class="col-sm-2 col-sm-offset-7 ">
                                <button class="btn btn-block btn-info" ng-click="getlist()">搜索</button> 
                            </div>             
                    </div>
                    </div>
                    </div>
                    </div> 
                   
                    
                    <!-- searchArea -->
                     <div class="panel panel-default">
                        <div class="panel-body"> 
                             <table class="table table-condensed table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <th class="col-md-1 text-center">票码</th>
                                        <th class="col-md-1 text-center">票种编号</th>
                                        <th class="col-md-1 text-center">票种名称</th>
                                        <th class="col-md-1 text-center">订单编号</th>
                                        <th class="col-md-1 text-center">下单时间</th>
                                        <th class="col-md-1 text-center" ng-show = "searchform.update == '0'">开始时间</th>
                                        <th class="col-md-1 text-center" ng-show = "searchform.update == '1'">结束时间</th>
                                        <th class="col-md-1 text-center" ng-show = "searchform.update == '2'">是否预约</th>
                                        <th class="col-md-1 text-center">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ng-repeat="obj in objs">
                                        <td class="text-center">{{obj.code}} </td>
                                        <td class="text-center">{{obj.type}}</td>
                                        <td class="text-center">{{obj.type_name}}</td>
                                        <td class="text-center">{{obj.order_code}}</td>
                                        <td class="text-center">{{obj.create_time}}</td>
                                        <td class="text-center" ng-show = "searchform.update == '0'">{{obj.period_start}}</td>
                                        <td class="text-center" ng-show = "searchform.update == '1'">{{obj.period}}</td>
                                        <td class="text-center" ng-show = "searchform.update == '2'">{{obj.appoint}}</td>
                                        <!--<td class="text-center">{{obj.from_app_id}}</td>
                                        <td class="text-center">{{(obj.pay_fee / 100) | currency:'¥'}}</td>
                                        <td class="text-center">
                                            <p class="" ng-if="obj.cancel_state == '0'">正常</p>
                                            <p class="" ng-if="obj.cancel_state == '1'">已取消</p>
                                        <td class="text-center">-->
                                        <td class="text-center">
                                            <a ng-click="updateticket($index)" class="btn btn-primary btn-xs">更新</a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table> 
                            <div class="col-sm-2  col-sm-offset-10" ng-show="a == '0'" style="margin-bottom : 10px">
                                <button class="btn btn-block btn-info" ng-click="oneupdate()">一键更新</button> 
                            </div>

                             <div class="text-right">
                                <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                                class="m-t-none m-b">
                                </pagination>
                            </div> 
                         </div>
                    </div> 
                 </div> 
                 
			    </div>
			</div>
		</div>
	</div>

<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">OK</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>                   